import request from '@/utils/request'

// 获取工资数据信息
export function queryGenerateSalaryDataPage(query) {
  return request({
    url: '/generateSalaryDataController/queryGenerateSalaryDataPage',
    method: 'get',
    params: query
  })
}

// 生成工资数据
export function makeSalaryData(data) {
  return request({
    url: '/generateSalaryDataController/makeSalaryData',
    method: 'post',
    data
  })
}

// 提前检测生成支付状态
export function checkSalaryData(data) {
  return request({
    url: '/generateSalaryDataController/checkSalaryData',
    method: 'post',
    data
  })
}
// 判断是否生成银行数据
export function getBankDataStatus(query) {
  return request({
    url: '/generateSalaryDataController/getBankDataStatus',
    method: 'get',
    params: query
  })
}

// 撤销生成工资数据
export function revokeSalaryData(data) {
  return request({
    url: '/generateSalaryDataController/revokeSalaryData',
    method: 'post',
    data
  })
}

// 获取支付回复信息
export function getPayBackData(query) {
  return request({
    url: '/generateSalaryDataController/getPayBackData',
    method: 'get',
    params: query
  })
}
